import request from '@/utils/request'

export function listContent(query) {
  return request({
    url: '/content/list',
    method: 'get',
    params: query
  })
}

export function saveContent(data) {
  return request({
    url: '/content/save',
    method: 'post',
    data
  })
}

export function updateContent(data) {
  return request({
    url: '/content/update',
    method: 'put',
    data
  })
}

export function deleteContent(id) {
  return request({
    url: `/content/${id}`,
    method: 'delete'
  })
} 